Component({
    properties: {
        showProgress: {
            type: Boolean,
            value: true
        },
        showContent: {
            type: Boolean,
            value: true
        },
        content: {
            type: String,
            value: '正在为你分析结果，请耐心等待...'
        },
        progressPercent: {
            type: Number,
            value: 0
        },
        adVideoId: {
            type: String,
            value: ''
        }
    },
    data: {
        hiddenDialog: true
    },

    methods: {
        onAdLoad(evt) {
            this.setData({ hiddenDialog: false });
            console.log('视频广告加载成功', evt, this.data.hiddenDialog);
        },
        onAdError(evt) {
            this.triggerEvent('viewResult');
            console.log('视频广告加载出错', evt);
        }
    }
});
